<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
<!--  <input type="text" v-model.lazy="message">-->
<!--  <h2>{{message}}</h2>-->

<!--  <input type="number" v-model.number="age">-->
<!--  <h2>{{age}}-{{typeof age}}</h2>-->

  <input  type="text" v-model.trim="message"/>
  <!--使用console.log(app.message)查看会更清楚一点-->
</div>

<script src="./js/vue.js"></script>

<script>
  const app = new Vue({
    el:'#app',
    data:{
      message:'Hello World',
      age:0
    }
  });
</script>
</body>
</html>